/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Cam_tipo_reporteDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression ti_id_tipo_reporte;
	public final StringExpression ti_descripcion;
	
	public Cam_tipo_reporteDetachedCriteria() {
		super(orm.Cam_tipo_reporte.class, orm.Cam_tipo_reporteCriteria.class);
		ti_id_tipo_reporte = new StringExpression("ti_id_tipo_reporte", this.getDetachedCriteria());
		ti_descripcion = new StringExpression("ti_descripcion", this.getDetachedCriteria());
	}
	
	public Cam_tipo_reporteDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Cam_tipo_reporteCriteria.class);
		ti_id_tipo_reporte = new StringExpression("ti_id_tipo_reporte", this.getDetachedCriteria());
		ti_descripcion = new StringExpression("ti_descripcion", this.getDetachedCriteria());
	}
	
	public Cam_reporteDetachedCriteria createCam_reporteCriteria() {
		return new Cam_reporteDetachedCriteria(createCriteria("ORM_Cam_reporte"));
	}
	
	public Cam_tipo_reporte uniqueCam_tipo_reporte(PersistentSession session) {
		return (Cam_tipo_reporte) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Cam_tipo_reporte[] listCam_tipo_reporte(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Cam_tipo_reporte[]) list.toArray(new Cam_tipo_reporte[list.size()]);
	}
}

